package com.mikufufu.blog.controller.api;

import com.mikufufu.blog.common.entity.AjaxResult;
import com.mikufufu.blog.model.vo.api.WebSiteVO;
import com.mikufufu.blog.service.SysSettingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/website")
@Api(tags = "网站信息")
public class WebSiteController {

    @Autowired
    private SysSettingService sysSettingService;

    @GetMapping("/info")
    @ApiOperation(value = "获取系统设置中的网站信息")
    public AjaxResult<WebSiteVO> info() {
        return AjaxResult.data(sysSettingService.getWebSiteVO());
    }
}
